//
//  UserInforSingal.m
//  ChengXinBao
//
//  Created by RongZhou on 17/3/7.
//  Copyright © 2017年 RongZhou. All rights reserved.
//

#import "UserInforSingal.h"

@implementation UserInforSingal
+(instancetype)shareUserinfor{
    static UserInforSingal *singal = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        singal = [[UserInforSingal alloc] init];
    });
    return singal;
}
-(instancetype)init{
    if (self = [super init]) {
        self.userName = [[NSUserDefaults standardUserDefaults] objectForKey:@"userName"];
        self.userId = [[NSUserDefaults standardUserDefaults] objectForKey:@"userId"];
        self.userphone = [[NSUserDefaults standardUserDefaults] objectForKey:@"userphone"];
        self.userPassword = [[NSUserDefaults standardUserDefaults] objectForKey:@"userpassword"];
    }
    return self;
}
@end
